package com.rudolfheszele.smsselector.controller;

/**
 * This class is the real implementation of the ControllerFactory interface
 * @author erudhes
 * @see ControllerFactory
 */
public class SmsSelectorMainControllerFactory implements ControllerFactory
{
	/**
	 * This method is the real implementation of the getController method
	 * in the ControllerFactory interface
	 * @return The main controller of the application
	 * @see ControllerFactory
	 */
	@Override
	public Controller getController()
	{
		if(sMainController == null)
			sMainController = new SmsSelectorMainController();
		
		return sMainController;
	}
	
	static SmsSelectorMainController sMainController = null;
}
